<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Insert title here</title>
        <script type="text/javascript">
        </script>
    </head>
    <body onload="parent.frame1.doAlert();">
    	this is frame 2.
		<br>
		<strong>
			<script type="text/javascript">
				document.write(parent.frame1.varframe1);
				parent.framecode.alert2();
				parent.frame3.subframe31.subalert31();
			</script>
		</strong>
		<br>
		<a href="#" onclick="javascript:parent.frame1.location='frame3.html';">update frame1</a>
		<br>
		<a href="#" onclick="javascript:window.location='frame3.html';">update frame2</a>
		<br>
		<a href="#" onclick="javascript:document.write('new new new ');">write frame2</a>
		<br>
		<a href="#" onclick="parent.frames[1].doAlert();">frame1's alert</a>
	</body>
</html>
